how to use maxa function in openoffice calc